package com.example.springbootdemo.mall.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import java.math.BigDecimal;
import java.util.Date;

/**
 *@author xuwangqi
 *@date 2021/5/24 9:28
 **/
/**
    * 邀请记录表
    */
@ApiModel(value="com-example-springbootdemo-entity-WalletRecord")
@TableName(value = "wallet_record")
public class WalletRecord {
    /**
     * id
     */
    @TableId(value = "id", type = IdType.AUTO)
    @ApiModelProperty(value="id")
    private Long id;

    /**
     * 会员id
     */
    @TableField(value = "uid")
    @ApiModelProperty(value="会员id")
    private Long uid;

    /**
     * 状态
1.from 增加的来源
2.to 减少的去向
     */
    @TableField(value = "status")
    @ApiModelProperty(value="状态,1.from 增加的来源,2.to 减少的去向")
    private Byte status;

    /**
     * 描述
     */
    @TableField(value = "description")
    @ApiModelProperty(value="描述")
    private String description;

    /**
     * 交易单号
     */
    @TableField(value = "deal_number")
    @ApiModelProperty(value="交易单号")
    private String dealNumber;

    /**
     * 金额
     */
    @TableField(value = "amount")
    @ApiModelProperty(value="金额")
    private BigDecimal amount;

    /**
     * 创建时间
     */
    @TableField(value = "gmt_create")
    @ApiModelProperty(value="创建时间")
    private Date gmtCreate;

    public static final String COL_ID = "id";

    public static final String COL_UID = "uid";

    public static final String COL_STATUS = "status";

    public static final String COL_DESCRIPTION = "description";

    public static final String COL_DEAL_NUMBER = "deal_number";

    public static final String COL_AMOUNT = "amount";

    public static final String COL_GMT_CREATE = "gmt_create";

    /**
     * 获取id
     *
     * @return id - id
     */
    public Long getId() {
        return id;
    }

    /**
     * 设置id
     *
     * @param id id
     */
    public void setId(Long id) {
        this.id = id;
    }

    /**
     * 获取会员id
     *
     * @return uid - 会员id
     */
    public Long getUid() {
        return uid;
    }

    /**
     * 设置会员id
     *
     * @param uid 会员id
     */
    public void setUid(Long uid) {
        this.uid = uid;
    }

    /**
     * 获取状态
1.from 增加的来源
2.to 减少的去向
     *
     * @return status - 状态
1.from 增加的来源
2.to 减少的去向
     */
    public Byte getStatus() {
        return status;
    }

    /**
     * 设置状态
1.from 增加的来源
2.to 减少的去向
     *
     * @param status 状态
1.from 增加的来源
2.to 减少的去向
     */
    public void setStatus(Byte status) {
        this.status = status;
    }

    /**
     * 获取描述
     *
     * @return description - 描述
     */
    public String getDescription() {
        return description;
    }

    /**
     * 设置描述
     *
     * @param description 描述
     */
    public void setDescription(String description) {
        this.description = description;
    }

    /**
     * 获取交易单号
     *
     * @return deal_number - 交易单号
     */
    public String getDealNumber() {
        return dealNumber;
    }

    /**
     * 设置交易单号
     *
     * @param dealNumber 交易单号
     */
    public void setDealNumber(String dealNumber) {
        this.dealNumber = dealNumber;
    }

    /**
     * 获取金额
     *
     * @return amount - 金额
     */
    public BigDecimal getAmount() {
        return amount;
    }

    /**
     * 设置金额
     *
     * @param amount 金额
     */
    public void setAmount(BigDecimal amount) {
        this.amount = amount;
    }

    /**
     * 获取创建时间
     *
     * @return gmt_create - 创建时间
     */
    public Date getGmtCreate() {
        return gmtCreate;
    }

    /**
     * 设置创建时间
     *
     * @param gmtCreate 创建时间
     */
    public void setGmtCreate(Date gmtCreate) {
        this.gmtCreate = gmtCreate;
    }
}